import request from '@/utils/request'

export function getTest(query) {
  return request({
    url: '/getTestPage.do',
    method: 'post',
    params: query
  })
}

export function deleteTest(id) {
  return request({
    url: '/deleteTest.do',
    method: 'post',
    params: id
  })
}

export function addTest(test) {
  return request({
    url: '/addTest.do',
    method: 'post',
    params: test
  })
}

export function updateTest(test) {
  return request({
    url: '/updateTest.do',
    method: 'post',
    params: test
  })
}

